#define _CRT_SECURE_NO_WARNINGS

#include "SList.h"

void test()
{
	SLTNode* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	SListPushFront(&plist, 0);
	SLTNode* pos = SListFind(plist,0);
	SListInsert(&plist, pos, -1);
	SLTNode* pos1 = SListFind(plist, 4);
	SListInsertAfter(pos1, 5);
	SLTNode* pos2 = SListFind(plist, -1);
	SListErase(&plist, pos2);
	//SListEraseAfter(pos2);
	SListPrint(plist);
}

int main()
{
	test();
	return 0;
}